home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
gfx
/
jpegv6bi.lha
/
jpegaga
/
CreateMapBig
< prev
Wrap
AmigaDOS Script File
|
1995-04-10
|
901b
|
45 lines
.key source/a,option
.bra {
.ket }
;$VER: CreateMapBig 1.1 (10.4.95)
;This shell script creates the .map files for jpegAGA
;for small pictures (e.g. 320x200) use the CreateMap script
;Features of this version
;- file names with spaces are supported
;- mapfile creation is much faster but you will need djpeg from the
; JPEG V5 distribution (Aminet: gfx/conv)
;USAGE: CreateMapBig file
;NOTE: You need a directory JPEGTMP: on your hard disk
; (and enough space on that partition)
FailAt 21
djpeg -pnm -outfile JPEGTMP:temp.ppm -scale 1/2 "{source}"
IF ERROR
delete >NIL: JPEGTMP:temp.ppm
echo "Fatal error: could not decode JPEG file."
QUIT 20
ENDIF
ppm2aga JPEGTMP:temp.ppm "{source}.map" -jpegAGA {option}
IF ERROR
delete >NIL: JPEGTMP:temp.ppm
delete >NIL: "{source}.map"
echo "Fatal error: could not create map file."
QUIT 20
ENDIF
delete >NIL: JPEGTMP:temp.ppm